import { HTTP } from "../../utils/http.js";

class ClassModel extends HTTP {
  //
  getClassListApi(data) {
    return this.request({
      url: "/wx/class/list",
      data: data,
      method: "GET",
    });
  }

  getClassInfoApi(data) {
    return this.request({
      url: "/wx/class/getById",
      data: data,
    });
  }

  // 排课信息
  getOrderInfoListApi(data) {
    return this.request({
      url: "/wx/class/orderInfoList",
      data: data,
      method: "GET",
    });
  }

  getStudentListApi(data) {
    return this.request({
      url: "/wx/class/studentList",
      data: data,
      method: "GET",
    });
  }

  //
  getOrderDateListApi(data) {
    return this.request({
      url: "/wx/class/orderDateList",
      data: data,
      method: "GET",
    });
  }

  getOrdeListApi(data) {
    return this.request({
      url: "/wx/class/orderList",
      data: data,
      method: "GET",
    });
  }

  getClassTimeByIdApi(data) {
    return this.request({
      url: "/wx/class/getClassTimeById",
      data: data,
    });
  }

  //
  getClassTimeStudentListApi(data) {
    return this.request({
      url: "/wx/class/classTimeStudentList",
      data: data,
      method: "GET",
    });
  }

  //
  getStudentCourseListApi(data) {
    return this.request({
      url: "/wx/class/studentCourseList",
      data: data,
      method: "GET",
    });
  }

  // 添加临时学员
  addStudentApi(data) {
    return this.request({
      url: "/wx/class/addStudent",
      data: data,
    });
  }

  // 添加学员
  addStudentToClassApi(data) {
    return this.request({
      url: "/wx/class/addStudentToClass",
      data: data,
    });
  }

  // 移除本班  调至其他班
  removeStudentApi(data) {
    return this.request({
      url: "/wx/class/removeStudent",
      data: data,
    });
  }

  updateBatchOrderApi(data) {
    return this.request({
      url: "/wx/class/updateBatchOrder",
      data: data,
    });
  }

  getStaffPeopleListApi(data) {
    return this.request({
      url: "/wx/Staff/peopleList",
      data: data,
    });
  }

  //
  getClassRoomListApi(data) {
    return this.request({
      url: "/tLabel/classRoomList",
      data: data,
    });
  }

  //
  updateClassTimeApi(data) {
    return this.request({
      url: "/wx/class/updateClassTime",
      data: data,
    });
  }

  // 新增排课保存
  courseOrderSaveApi(data) {
    return this.request({
      url: "/wx/class/courseOrderSave",
      data: data,
    });
  }

  // 修改排课保存
  courseOrderUpdateApi(data) {
    return this.request({
      url: "/wx/class/courseOrderUpdate",
      data: data,
    });
  }

  // 删除排课
  courseOrderDeleteApi(data) {
    return this.request({
      url: "/wx/class/courseOrderDelete",
      data: data,
    });
  }

  getCourseOrderConfigByIdApi(data) {
    return this.request({
      url: "/wx/class/getCourseOrderConfigById",
      data: data,
    });
  }

  deleteClassTimeApi(data) {
    return this.request({
      url: "/wx/class/deleteClassTime",
      data: data,
    });
  }

  // 获取缺课记录
  getOrderListSecondApi(data) {
    return this.request({
      url: "/wx/class/orderListSecond",
      data: data,
      method: "GET",
    });
  }

  // 标记已补
  updateOrderByIdApi(data) {
    return this.request({
      url: "/wx/class/updateOrderById",
      data: data,
    });
  }

  //
  saveRepairApi(data) {
    return this.request({
      url: "/wx/class/saveRepair",
      data: data,
    });
  }

  courseOrderSaveRepairApi(data) {
    return this.request({
      url: "/wx/class/courseOrderSaveRepair",
      data: data,
    });
  }

  saveOrderUpdateApi(data) {
    return this.request({
      url: "/wx/log/saveOrderUpdate",
      data: data,
    });
  }

  getClassCourseListApi(data) {
    return this.request({
      url: "/wx/student/classCourseList",
      data: data,
    });
  }

  getClassTimeStudentListApi(data) {
    return this.request({
      url: "/wx/class/classTimeStudentList",
      data: data,
      method: "GET",
    });
  }

  getTeacherListApi(data) {
    return this.request({
      url: "/wx/Staff/teacherList",
      data: data,
    });
  }

  startClassAuditionApi(data) {
    return this.request({
      url: "/wx/audition/startClassAudition",
      data: data,
    });
  }

  getEvaluateListApi(data) {
    return this.request({
      url: "/wx/evaluate/evaluateList",
      data: data,
      method: "GET",
    });
  }

  getTemplateListApi(data) {
    return this.request({
      url: "/wx/evaluate/templateList",
      data: data,
      method: "GET",
    });
  }

  getTempByIdApi(data) {
    return this.request({
      url: "/wx/evaluate/getTempById",
      data: data,
    });
  }

  //
  deleteFileApi(data) {
    return this.request({
      url: "/wx/obsStorage/delete",
      data: data,
    });
  }

  // /wx/evaluate/updateEvaluate
  updateEvaluateApi(data) {
    return this.request({
      url: "/wx/evaluate/updateEvaluate",
      data: data,
    });
  }

  // /wx/evaluate/evaluateGetById
  getEvaluateGetByIdApi(data) {
    return this.request({
      url: "/wx/evaluate/evaluateGetById",
      data: data,
    });
  }

  repairDetailAPI(data) {
    return this.request({
      url: "/wx/class/repairDetail",
      method: "POST",
      data: data,
    });
  }
}

export { ClassModel };
